#ifndef SETTINGS_H
#define SETTINGS_H

#include <QObject>

class Settings : public QObject
{
    Q_OBJECT
public:
    explicit Settings(QObject *parent = nullptr);
    static int protocolType();
    static QString ip();
    static int port();
    static bool recvHex();
    static bool logDisplayMode();
    static bool autoNewline();
    static bool hideRecv();
    static bool sendHex();
    static QString remoteAddress();
    static QString recvText();
    static QString sendText();
    static QString logFilename();
    static bool outputToFile();
    static bool addNewline();
    static bool addEnter();
    static int circle();
    static bool autoScroll();

    static void setProtocolType(int index);
    static void setIp(QString ip);
    static void setPort(int port);
    static void setRecvHex(bool enable);
    static void setLogDisplayMode(bool enable);
    static void setAutoNewline(bool enable);
    static void setHideRecv(bool enable);
    static void setSendHex(bool enable);
    static void setRemoteAddress(QString address);
    static void setRecvText(QString text);
    static void setSendText(QString text);
    static void setLogFilename(QString filename);
    static void setOutputFile(bool enable);
    static void setAddNewline(bool enable);
    static void setAddEnter(bool enable);
    static void setCircle(int millisecond);
    static void setAutoScroll(bool enable);

signals:

};

#endif // SETTINGS_H
